import os, sys, glob
defs   = ['_REENTRANT', 'DEBUG', 'DEBUGMEM', 'NO_FCGI_DEFINES']
includes = ['.', '../base', '../', 'usr/local/include', '../gen-cpp', '/usr/local/include/thrift']
libpath= ['../base', '/usr/local/lib']
libs = ['base', 'pthread', 'json', 'thrift']
cflags = '-ggdb -pthread -Wall -Werror'
bin = 'perf'

files = glob.glob("*.cc")
files.append('../hbase_client.cc')
files.append('../gen-cpp/Hbase.cc')
files.append('../gen-cpp/Hbase_constants.cc')
files.append('../gen-cpp/Hbase_types.cc')
env = Environment(CFLAGS=cflags, CPPDEFINES=defs, CPPPATH=includes, LIBPATH=libpath, LIBS=libs)
perf = env.Program(bin, files)
